using SpecFlowDemo.Specs.Drivers;
using System.Net.Http;
using TechTalk.SpecFlow;

namespace SpecFlowDemo.Specs.StepDefinitions
{
    [Binding]
    public sealed class CalculatorStepDefinitions
    {
        private readonly HttpClientDriver _httpClientDriver;
        private readonly HttpClient _httpClient;

        public CalculatorStepDefinitions(HttpClientDriver httpClientDriver, IHttpClientFactory httpClientFactory)
        {
            _httpClientDriver = httpClientDriver;
            _httpClient = httpClientFactory.CreateClient();
        }

        [Given(@"I have chosen a business type as '([^']*)'")]
        public void GivenIHaveChosenABusinessTypeAs(string p0)
        {
            throw new PendingStepException();
        }

        [Given(@"client as '([^']*)'")]
        public void GivenClientAs(string p0)
        {
            _httpClientDriver.TestSSS = "20";
        }

        [Given(@"trade as follows")]
        public void GivenTradeAsFollows(Table table)
        {
            throw new PendingStepException();
        }

        [Given(@"state as '([^']*)'")]
        public void GivenStateAs(string iL)
        {
            throw new PendingStepException();
        }

        [Given(@"market and sub-market as follows")]
        public void GivenMarketAndSub_MarketAsFollows(Table table)
        {
            throw new PendingStepException();
        }

        [When(@"create group with '([^']*)'")]
        public void WhenCreateGroupWith(string p0)
        {
            throw new PendingStepException();
        }

        [Then(@"can view service trade under sub-market as follows")]
        public void ThenCanViewServiceTradeUnderSub_MarketAsFollows(Table table)
        {
            throw new PendingStepException();
        }
    }
}